curl --request POST \
--url 'http://{{baseurl}}/api/v1/management/responses' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"createdAt": "2024-09-05T08:44:16.051Z",
"data": {
"hg508afs7lgx8nlni5dtit5u": [
"Hello World"
]
},
"finished": false,
"language": "default",
"surveyId": "clwj7hi7r0000vfhpfze6vjdg",
"updatedAt": "2024-09-05T08:44:16.051Z"
}
'{
"data": {
"createdAt": "2024-04-23T12:15:01.680Z",
"data": {
"hs8yd14l9h8u353tjmv6rzaw": "clicked",
"hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
"tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
},
"finished": true,
"id": "clvccml2p0009xz1zrlk1wbqb",
"language": "en",
"meta": {
"action": "test action",
"source": "Postman API",
"url": "https://postman.com",
"userAgent": {}
},
"notes": [],
"person": {
"attributes": {
"Created From": "API",
"created_from": "API"
},
"createdAt": "2024-04-23T07:39:22.696Z",
"environmentId": "clurwouax000azffxt7n5unn3",
"id": "clvc2s3ig000k494jltkqkm2u",
"updatedAt": "2024-04-23T07:39:22.696Z",
"userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING"
},
"personAttributes": {
"Created From": "API",
"created_from": "API"
},
"singleUseId": null,
"surveyId": "clus3omb00009oo10s53e2pa5",
"tags": [],
"ttc": {
"_total": 310,
"hs8yd14l9h8u353tjmv6rzawqqq": 120,
"tcgls0063n8ri7dtrbnepcmz": 190
},
"updatedAt": "2024-04-23T12:16:39.774Z"
}
}Create a user response using the management API
curl --request POST \
--url 'http://{{baseurl}}/api/v1/management/responses' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"createdAt": "2024-09-05T08:44:16.051Z",
"data": {
"hg508afs7lgx8nlni5dtit5u": [
"Hello World"
]
},
"finished": false,
"language": "default",
"surveyId": "clwj7hi7r0000vfhpfze6vjdg",
"updatedAt": "2024-09-05T08:44:16.051Z"
}
'{
"data": {
"createdAt": "2024-04-23T12:15:01.680Z",
"data": {
"hs8yd14l9h8u353tjmv6rzaw": "clicked",
"hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
"tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
},
"finished": true,
"id": "clvccml2p0009xz1zrlk1wbqb",
"language": "en",
"meta": {
"action": "test action",
"source": "Postman API",
"url": "https://postman.com",
"userAgent": {}
},
"notes": [],
"person": {
"attributes": {
"Created From": "API",
"created_from": "API"
},
"createdAt": "2024-04-23T07:39:22.696Z",
"environmentId": "clurwouax000azffxt7n5unn3",
"id": "clvc2s3ig000k494jltkqkm2u",
"updatedAt": "2024-04-23T07:39:22.696Z",
"userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING"
},
"personAttributes": {
"Created From": "API",
"created_from": "API"
},
"singleUseId": null,
"surveyId": "clus3omb00009oo10s53e2pa5",
"tags": [],
"ttc": {
"_total": 310,
"hs8yd14l9h8u353tjmv6rzawqqq": 120,
"tcgls0063n8ri7dtrbnepcmz": 190
},
"updatedAt": "2024-04-23T12:16:39.774Z"
}
}The body is of type object.
OK
The response is of type object.
Was this page helpful?